
// 引入指定文件内的某个功能接口
import { random } from "../modules/mA.js";

console.log( random );

console.log( random(0, 10) );
console.log( random(0, 10) );
console.log( random(0, 10) );
console.log( random(0, 10) );
console.log( random(0, 10) );

// 只执行指定文件
import "../modules/mB.js";

import { randomColor } from "../modules/mB.js";
console.log(randomColor)
console.log(randomColor())
console.log(randomColor())
console.log(randomColor())
console.log(randomColor())
console.log(randomColor())
console.log(randomColor())
console.log(randomColor())
console.log(randomColor())
